/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.skuboard.model;

import java.util.List;
import javax.ejb.EJB;
import org.skuboard.model.dao.SchoolDAO;
import org.skuboard.model.dao.SchoolDAOEntityImp;
import org.skuboard.model.dao.SchoolDAOImpl;
import org.skuboard.session.StudentsFacade;


/**
 *
 * @author clockbuilder
 */
public class StudentService {
SchoolDAO schoolDb;


    public StudentService() {
       schoolDb=new SchoolDAOImpl();
       // schoolDb = new SchoolDAOEntityImp();
    }

    public void createStudent() {
        //extract the student data from the request attributes
        //and use it to create the new student in the database

        throw new UnsupportedOperationException("Not yet implemented");
    }

    public Student viewStudentProfile(String studentId) {
        Student student = schoolDb.getStudentById(studentId);
        return student;
    }

    public List<Student> getAllStudents() {
        return schoolDb.getAllStudents();
    }

    public String getAllStudentsInfo() {
        return schoolDb.getallStudentsInfo();
    }

    public String getStudentInfoById(String studentId){
        return schoolDb.getStudentInfo(studentId);
    }
    
}